home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 4 / Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso / Pearls / etech / Spice / examples / ltra_1.cir < prev    next >
Text File  |  1991-03-31  |  4KB  |  242 lines

  1.    BJTdriver -- 24inch lossy line -- DiodeCircuit
  2.  
  3. * This unclassified circuit is from Raytheon, courtesy Gerry Marino.
  4. * It consists of a BJT driver connected by a 24 inch lossy line to a
  5. * passive load consisting mostly of diodes. Each inch 
  6. * of the lossy line is modelled by 10 LRC lumps in the Raytheon
  7. * model.
  8.  
  9. * The line parameters (derived from the Raytheon input file) are:
  10. * L = 9.13nH per inch
  11. * C = 3.65pF per inch
  12. * R = 0.2 ohms per inch
  13.  
  14. * the circuit
  15. *tran 0.1ns 60ns 0 0.5ns
  16.  
  17. v1 1 0 0v pulse(0 4 1ns 1ns 1ns 20ns 40ns)
  18. *v1 1 0 4v pulse(4 0 1ns 1ns 1ns 20ns 40ns)
  19. vcc 10 0 5v
  20. *rseries 1 2 5
  21. x1 1 2 10 bjtdrvr
  22. *t1 2 0 3 0 z0=50.0136 td=4.38119ns rel=10
  23. o2 2 0 3 0 lline
  24. *x2 2 3 oneinch
  25. *x2 100 101 twentyfourinch
  26. *x2 100 101 xtwentyfourinch
  27. vtest1 2 100 0
  28. vtest2 101 3 0
  29. x3 3 4 10 dioload
  30. *rl 3 0 5
  31. *dl 0 3 diod2
  32.  
  33. .model lline ltra rel=1 r=0.2 g=0 l=9.13e-9 c=3.65e-12 len=24 steplimit compactrel=1.0e-3 compactabs=1.0e-14
  34.  
  35. .model qmodn npn(bf=100 rb=100 cje=0.09375pF cjc=0.28125pF is=1e-12
  36. +pe=0.5 pc=0.5)
  37.  
  38. .model qmodpd npn(bf=100 rb=100 cje=0.08187pF cjc=0.2525pF is=1e-12
  39. +pe=0.5 pc=0.5)
  40. *.model qmodpdmine npn(bf=100 rb=100  cje=0.08187pF cjc=0.15pF is=1e-12
  41. .model qmodpdmine npn(bf=100 rb=100  cje=0.08187pF cjc=0.05pF is=1e-12
  42. +pe=0.5 pc=0.5)
  43.  
  44. .model dmod1 d(n=2.25 is=1.6399e-4 bv=10)
  45.  
  46. .model dmod2 d
  47.  
  48. .model dmod d(vj=0.3v)
  49.  
  50. *.model diod1 d(1.0 tt=0.75ns vj=0.6 rs=909 bv=10)
  51. .model diod1 d(tt=0.75ns vj=0.6 rs=909 bv=10)
  52.  
  53. *.model diod2 d(1.0 tt=0.5ns vj=0.3 rs=100 bv=10)
  54. .model diod2 d(tt=0.5ns vj=0.3 rs=100 bv=10)
  55.  
  56. .options itl5=0 acct
  57. +reltol=1e-3 abstol=1e-14
  58. .tran 0.1ns 60ns
  59. .save v(1) v(2) v(3)
  60.  
  61. *.tran 1e-9 1e-8
  62.  
  63. * bjt driver - 19=input, 268=output, 20=vcc; wierd node numbers from 
  64. * the Raytheon file
  65.  
  66. .subckt bjtdrvr 19 268 20
  67. q1 22 18 13 qmodn
  68. q2 18 16 13 qmodn
  69. qd2 21 9 0 qmodn
  70. q4 14 14 0 qmodn
  71. q3 16 15 14 qmodpd
  72. q5 8 13 17 qmodn
  73. q6 25 12 0 qmodn
  74. q7 6 17 0 qmodpd
  75. qd1 26 10 0 qmodn
  76. q8 7 11 10 qmodn
  77. q10 268 17 0 qmodpdmine
  78. *q10 268 17 0 qmodpd
  79. q9 7 10 268 qmodn
  80.  
  81. d1 0 19 dmod1
  82. d2 18 19 dmod2
  83. d3 13 19 dmod
  84. dq1 18 22 dmod
  85. dq2 16 18 dmod
  86. d502 9 21 dmod
  87. dq3 15 16 dmod
  88. d10 24 8 dmod
  89. d4 15 6 dmod
  90. dq6 12 25 dmod
  91. dq7 17 6 dmod
  92. dd1 17 10 dmod
  93. d7 11 6 dmod
  94. dd2 17 26 dmod
  95. d9 23 6 dmod
  96. dq8 11 7 dmod
  97. d501 17 268 dmod
  98. dq9 10 7 dmod
  99. d14 20 27 dmod
  100. d8 0 268 dmod
  101.  
  102. r1 18 20 6k
  103. r2 22 20 2.2k
  104. r4 0 13 7k
  105. rd1 9 13 2k
  106. rd2 21 13 3k
  107. r3 16 20 10k
  108. r5 15 20 15k
  109. r9 0 17 4k
  110. r6 24 20 750
  111. r10 12 17 2k
  112. r12 24 11 1.5k
  113. r11 25 17 3k
  114. r15 23 20 10k
  115. r13 0 10 15k
  116. r14 7 27 12
  117.  
  118. .ends bjtdrvr
  119.  
  120. * subckt dioload - diode load: input=28, output=4, vcc=5
  121.  
  122. .subckt dioload 28 4 5
  123. *comment out everything in dioload except d5 and r503, and watch
  124. * the difference in results obtained between a tran 0.1ns 20ns and
  125. * a tran 0.01ns 20ns
  126. c1 28 0 5pF
  127. r503 0 4 5.55
  128. r4 0 28 120k
  129. r5 1 5 7.5k
  130.  
  131. d5 4 28 diod2
  132. d1 1 28 diod1
  133. d4 2 0 diod1
  134. d3 3 2 diod1
  135. d2 1 3 diod1
  136. .ends dioload
  137.  
  138. * subckt lump - one RLC lump of the lossy line
  139.  
  140. *10 segments per inch
  141. .subckt lump 1 2
  142. *r1 1 3 0.02
  143. *c1 3 0 0.365pF
  144. *l1 3 2 0.913nH
  145.  
  146. l1 1 3 0.913nH
  147. c1 2 0 0.365pF
  148. r1 3 2 0.02
  149.  
  150. *r1 1 3 0.01
  151. *c1 3 0 0.1825pF
  152. *l1 3 4 0.4565nH
  153. *r2 4 5 0.01
  154. *c2 5 0 0.1825pF
  155. *l2 5 2 0.4565nH
  156.  
  157. *c1 1 0 0.365pF
  158. *l1 1 2 0.913nH
  159. .ends lump
  160.  
  161. .subckt oneinch 1 2
  162. x1 1 3 lump
  163. x2 3 4 lump
  164. x3 4 5 lump
  165. x4 5 6 lump
  166. x5 6 7 lump
  167. x6 7 8 lump
  168. x7 8 9 lump
  169. x8 9 10 lump
  170. x9 10 11 lump
  171. x10 11 2 lump
  172. .ends oneinch
  173.  
  174. .subckt fourinch 1 2
  175. x1 1 3 oneinch
  176. x2 3 4 oneinch
  177. x3 4 5 oneinch
  178. x4 5 2 oneinch
  179. .ends fourinch
  180.  
  181. .subckt fiveinch 1 2
  182. x1 1 3 oneinch
  183. x2 3 4 oneinch
  184. x3 4 5 oneinch
  185. x4 5 6 oneinch
  186. x5 6 2 oneinch
  187. .ends fiveinch
  188.  
  189. .subckt twentyfourinch 1 2
  190. x1 1 3 fiveinch
  191. x2 3 4 fiveinch
  192. x3 4 5 fiveinch
  193. x4 5 6 fiveinch
  194. x5 6 2 fourinch
  195. .ends twentyfourinch
  196.  
  197. *modelling using R and lossless lines
  198. *5 segments per inch
  199. .model llfifth ltra nocontrol noprint rel=10 r=0 g=0 l=9.13e-9
  200. +c=3.65e-12 len=0.2 steplimit quadinterp
  201. .subckt xlump 1 2 
  202. o1 1 0 3 0 llfifth
  203. r1 2 3 0.04
  204. .ends xlump
  205.  
  206. .subckt xoneinch 1 2
  207. x1 1 3 xlump
  208. x2 3 4 xlump
  209. x3 4 5 xlump
  210. x4 5 6 xlump
  211. x5 6 2 xlump
  212. *x5 6 7 xlump
  213. *x6 7 8 xlump
  214. *x7 8 9 xlump
  215. *x8 9 10 xlump
  216. *x9 10 11 xlump
  217. *x10 11 2 xlump
  218. .ends xoneinch
  219.  
  220. .subckt xfourinch 1 2
  221. x1 1 3 xoneinch
  222. x2 3 4 xoneinch
  223. x3 4 5 xoneinch
  224. x4 5 2 xoneinch
  225. .ends xfourinch
  226.  
  227. .subckt xfiveinch 1 2
  228. x1 1 3 xoneinch
  229. x2 3 4 xoneinch
  230. x3 4 5 xoneinch
  231. x4 5 6 xoneinch
  232. x5 6 2 xoneinch
  233. .ends xfiveinch
  234.  
  235. .subckt xtwentyfourinch 1 2
  236. x1 1 3 xfiveinch
  237. x2 3 4 xfiveinch
  238. x3 4 5 xfiveinch
  239. x4 5 6 xfiveinch
  240. x5 6 2 xfourinch
  241. .ends xtwentyfourinch
  242.